.error-message {
  background: linear-gradient(135deg, #ff7675 0%, #e17055 100%);
  border-radius: 15px;
  padding: 24px;
  color: white;
  box-shadow: 0 8px 25px rgba(255, 118, 117, 0.3);
  max-width: 500px;
  margin: 20px auto;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.error-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.error-details {
  flex: 1;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.error-city {
  font-size: 14px;
  margin: 0 0 8px 0;
  opacity: 0.9;
  font-weight: 500;
}

.error-description {
  font-size: 14px;
  margin: 0 0 8px 0;
  opacity: 0.95;
  line-height: 1.4;
}

.error-suggestion {
  font-size: 13px;
  margin: 0;
  opacity: 0.8;
  font-style: italic;
}

.error-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.retry-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.retry-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.retry-icon {
  font-size: 14px;
  animation: spin 2s linear infinite;
}

.retry-button:hover .retry-icon {
  animation-duration: 0.5s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.error-tips {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  backdrop-filter: blur(5px);
}

.error-tips h4 {
  font-size: 14px;
  margin: 0 0 12px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-tips ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  opacity: 0.9;
}

.error-tips li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.error-tips li:last-child {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .error-message {
    margin: 20px 16px;
    padding: 20px;
  }
  
  .error-content {
    gap: 12px;
  }
  
  .error-icon {
    font-size: 28px;
  }
  
  .error-title {
    font-size: 16px;
  }
  
  .retry-button {
    width: 100%;
    justify-content: center;
  }
}

/* 暗色主题变体 */
.error-message.dark {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  box-shadow: 0 8px 25px rgba(45, 52, 54, 0.3);
}

/* 警告样式变体 */
.error-message.warning {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: #2d3436;
}

.error-message.warning .retry-button {
  background: rgba(45, 52, 54, 0.1);
  color: #2d3436;
  border-color: rgba(45, 52, 54, 0.2);
}

.error-message.warning .retry-button:hover {
  background: rgba(45, 52, 54, 0.2);
}